'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);

  router.post('/api/login', controller.home.login);
  // router.post('/api/register', controller.home.register);

  // add
  router.post('/api/user', controller.blogs.add)
  // // update
  // router.put('/api/user/:id', controller.home.update)
  // // delete
  // router.delete('/api/user/:id', controller.home.delete)
  // // all delete
  // router.delete('/api/alldelete', controller.home.alldelete)
  // // page
  // router.get('/api/page', controller.home.alldelete)
  // router.get('/api/serarch', controller.home.alldelete)
};
